const KEY = 'token';
/**
 * 设置token方法
 * @param token 秘钥
 */
export const setToken = (token: string) => {
  window.localStorage.setItem(KEY, token);
};

/**
 * 获取token
 * @returns 秘钥结果
 */
export const getToken = () => window.localStorage.getItem(KEY);

/**
 * 移除token
 * @returns null
 */
export const cleaderToken = () => window.localStorage.removeItem(KEY);
